ActiveReports 8
Listen<TModel1,TModel2,TValue>(TModel1,Expression<Func<TModel1,TModel2>>,Expression<Func<TModel2,TValue>>,Action) Method

Type of model the property references to
Gets first level property
Gets nested property
The action to perform on property change
Performs specific action on particular property change with nested property support
Syntax
'Declaration
 
Public Overloads Shared Function Listen
    (Of TModel1 As {Class, System.ComponentModel.INotifyPropertyChanged},
     TModel2 As {Class, System.ComponentModel.INotifyPropertyChanged},
     TValue)( _
   ByVal model As TModel1, _
   ByVal getter1 As System.Linq.Expressions.Expression(Of Func(Of TModel1,TModel2)), _
   ByVal getter2 As System.Linq.Expressions.Expression(Of Func(Of TModel2,TValue)), _
   ByVal action As System.Action _
) As System.IDisposable
public static System.IDisposable Listen<TModel1,TModel2,TValue>( 
   TModel1 model,
   System.Linq.Expressions.Expression<Func<TModel1,TModel2>> getter1,
   System.Linq.Expressions.Expression<Func<TModel2,TValue>> getter2,
   System.Action action
)
where TModel1: class, System.ComponentModel.INotifyPropertyChanged
where TModel2: class, System.ComponentModel.INotifyPropertyChanged

Parameters

model
getter1
Gets first level property
getter2
Gets nested property
action
The action to perform on property change

Type Parameters

TModel1
TModel2
Type of model the property references to
TValue
See Also

Reference

ActiveModelListenExtensions Class
ActiveModelListenExtensions Members
Overload List

Support Forum